<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.fit.user.dao.*"  %>
<%@ page import="com.fit.user.entity.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
  <link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
    
    <title>My JSP 'manager_mac.jsp' starting page</title>
<%
MacAddrMsgDAO macAddrMsgDAO = new MacAddrMsgDAO();
List<MacAddrEntity> list = macAddrMsgDAO.getMcaAddrMsg();
String[] str = {"电脑的MAc地址","电脑所在区域"};
 %>
 	<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}


</style>
  </head>
  
  <body>

  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" >
  <tr>
    <td width="17" valign="top" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=contextPath%>/img/skin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">电脑设置</div></td>

      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=contextPath%>/img/skin/mail_leftbg.gif">&nbsp;</td>
  
    <td valign="top" bgcolor="#F7F8F9"  class="table_boder">
   <table width="800" align="center">
   <tr>

   <td width="300px;"></td>
   <td>


  <table width="600" height="400" cellpadding="0" cellspacing="0" >
		<tr>
  <td valign="top">
    <!-- ------ -->
  <form action="<%=basePath %>/macAddrMsg.do?oper=submit" method="post" >
电脑的MAC地址：<input type ="text" name="macAddrEntity.macAddr"/><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;电脑所在区域：<input type="text" name="macAddrEntity.area"/><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="提交"> 
 </form>
<hr/>
  <table  class="table_boder" cellSpacing="0" cellPadding="0" width="60%" id="changecolor" >
  <tr  align="center" class="myrow" bgcolor="#1D639F">
  <c:forEach var="name" items="<%=str %>">
  <td  class="td_boder"  style="color:#ffffff;">${name }</td>
  </c:forEach>
  </tr>
  <%
  if(list!=null){
   %>
  <c:forEach var="macAddrEntity" items="<%=list %>">
  <tr >
  <td>${macAddrEntity.macAddr }</td><td>${macAddrEntity.area }</td>
  </tr>
  </c:forEach>
  <%
  }
   %>
  </table>
  
  <!-- ------ -->
  
  </td>
     </tr></table>
   
						</td></tr></table>
	</td>
    <td background="<%=contextPath%>/img/skin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=contextPath%>/img/skin/buttom_bgs.gif"><img src="<%=contextPath%>/img/skin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  
  </body>
</html>
